import { request } from '../utils/request'

//登录
export const login = (data) => {
  return request.post('/admin/login', data)
}

//登出
export const logout = () => {
  return request.post('/admin/logout')
}

//接口获取
export const fetchInterface = (data) => {
  return request.post('/api/interface/listPage', data)
}

//接口批量上传
export const uploadInterface= (data) => {
  return request.post('/api/interface/saveBatch', data)
}

//接口修改
export const updateInterface = (data) => {
  return request.post('/api/interface/update', data)
}
//接口删除
export const deleteInterface = (id) => {
  return request.post(`/api/interface/delete/${id}`,id)
}
//接口增加
export const createInterface = (data) => {
  return request.post('/api/interface/create', data)
}